package com.coding.mapper;

import com.coding.pojo.Blog;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;
import org.springframework.stereotype.Service;

import java.util.List;

/**
 * -- Created by IntelliJ IDEA.
 * -- REMARK:
 * -- User: tanwei
 * -- Date: 2020/7/5
 * -- Time: 7:07 下午
 * --
 */
@Mapper
@Service
public interface BlogMapper {


    List<Blog> lists();


    int addBlog(Blog blog);


    Blog queryBlogById(int id);

    int deleteBlogById(int id);
}
